package com.qf.mybatisplus.controller;

import com.qf.mybatisplus.resultBean.Result;
import com.qf.mybatisplus.service.ProvinceCityCountyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 省市区三级联动接口
 * @projectName: my-project
 * @package: com.qf.mybatisplus.controller
 * @className: ProvinceCityCountryController
 * @author: zdd
 * @date: 2024/11/6 16:25
 * @version: 1.0
 */
@RestController
@RequestMapping("/provinceCityCounty")
public class ProvinceCityCountyController {


    @Autowired
    private ProvinceCityCountyService provinceCityCountyService;


    /**
     * 获取省市区列表
     * @return
     */
    @RequestMapping("/getList")
    public Result getProvinceCityCountyList(String province){
        return provinceCityCountyService.getProvinceCityCountyList(province);
    }
}
